﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.ServiceModel;
using TCKQKL.Service.DataContract;
using TCKQKL.Service.Implementation;
using TCKQKL.Service.Contract;

namespace TCKQKL.Service.HostWS
{
    public partial class Service1 : ServiceBase
    {
        ServiceHost myServiceHost;

        public Service1()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            myServiceHost = new ServiceHost(typeof(LookupService));
            myServiceHost.Open();
        }

        protected override void OnStop()
        {
            if (myServiceHost != null)
                myServiceHost.Close();
        }
    }
}
